package com.lulufind.lulu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lulufind.lulu.model.CoterieImage;
import com.lulufind.lulu.vo.CoterieImageInfoVO;

public interface CoterieImageMapper {

	public int save(CoterieImage coterieImage);
	public int updateExist(@Param("imageId")Integer imageId, @Param("exist")Integer exist);
	public Integer checkOwner(@Param("imageId")Integer imageId, @Param("userId")Integer userId);
	
	public List<CoterieImageInfoVO> findHotImage(@Param("start")Integer start, @Param("num")Integer num);
	public List<CoterieImageInfoVO> findRandomImage(@Param("num")Integer num);
	public List<CoterieImageInfoVO> findAntiHotImage(@Param("start")Integer start, @Param("num")Integer num);
	public List<CoterieImageInfoVO> findHotImageByCoterie(@Param("coterieId")Integer coterieId, @Param("start")Integer start, @Param("num")Integer num);
	public List<CoterieImageInfoVO> findAntiHotImageByCoterie(@Param("coterieId")Integer coterieId, @Param("start")Integer start, @Param("num")Integer num);
	public List<CoterieImageInfoVO> findImageByUser(@Param("userId")Integer userId, @Param("start")Integer start, @Param("num")Integer num);
	public CoterieImageInfoVO findImageInfo(@Param("imageId")Integer imageId);
}
